Integrand size = 24, antiderivative size = 474 \[ \int (f+g x)^3 \left (a+b \log \left (c (d+e x)^n\right )\right )^n \, dx=\frac {4^{-1-n} e^{-\frac {4 a}{b n}} g^3 (d+e x)^4 \left (c (d+e x)^n\right )^{-4/n} \Gamma \left (1+n,-\frac {4 \left (a+b \log \left (c (d+e x)^n\right )\right )}{b n}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )^n \left (-\frac {a+b \log \left (c (d+e x)^n\right )}{b n}\right )^{-n}}{e^4}+\frac {3^{-n} e^{-\frac {3 a}{b n}} g^2 (e f-d g) (d+e x)^3 \left (c (d+e x)^n\right )^{-3/n} \Gamma \left (1+n,-\frac {3 \left (a+b \log \left (c (d+e x)^n\right )\right )}{b n}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )^n \left (-\frac {a+b \log \left (c (d+e x)^n\right )}{b n}\right )^{-n}}{e^4}+\frac {3\ 2^{-1-n} e^{-\frac {2 a}{b n}} g (e f-d g)^2 (d+e x)^2 \left (c (d+e x)^n\right )^{-2/n} \Gamma \left (1+n,-\frac {2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{b n}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )^n \left (-\frac {a+b \log \left (c (d+e x)^n\right )}{b n}\right )^{-n}}{e^4}+\frac {e^{-\frac {a}{b n}} (e f-d g)^3 (d+e x) \left (c (d+e x)^n\right )^{-1/n} \Gamma \left (1+n,-\frac {a+b \log \left (c (d+e x)^n\right )}{b n}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )^n \left (-\frac {a+b \log \left (c (d+e x)^n\right )}{b n}\right )^{-n}}{e^4} \]
[Out]
Time = 0.38 (sec) , antiderivative size = 474, normalized size of antiderivative = 1.00, number of steps used = 14, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {2448, 2436, 2337, 2212, 2437, 2347} \[ \int (f+g x)^3 \left (a+b \log \left (c (d+e x)^n\right )\right )^n \, dx=\frac {g^2 3^{-n} e^{-\frac {3 a}{b n}} (d+e x)^3 (e f-d g) \left (c (d+e x)^n\right )^{-3/n} \left (a+b \log \left (c (d+e x)^n\right )\right )^n \left (-\frac {a+b \log \left (c (d+e x)^n\right )}{b n}\right )^{-n} \Gamma \left (n+1,-\frac {3 \left (a+b \log \left (c (d+e x)^n\right )\right )}{b n}\right )}{e^4}+\frac {3 g 2^{-n-1} e^{-\frac {2 a}{b n}} (d+e x)^2 (e f-d g)^2 \left (c (d+e x)^n\right )^{-2/n} \left (a+b \log \left (c (d+e x)^n\right )\right )^n \left (-\frac {a+b \log \left (c (d+e x)^n\right )}{b n}\right )^{-n} \Gamma \left (n+1,-\frac {2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{b n}\right )}{e^4}+\frac {e^{-\frac {a}{b n}} (d+e x) (e f-d g)^3 \left (c (d+e x)^n\right )^{-1/n} \left (a+b \log \left (c (d+e x)^n\right )\right )^n \left (-\frac {a+b \log \left (c (d+e x)^n\right )}{b n}\right )^{-n} \Gamma \left (n+1,-\frac {a+b \log \left (c (d+e x)^n\right )}{b n}\right )}{e^4}+\frac {g^3 4^{-n-1} e^{-\frac {4 a}{b n}} (d+e x)^4 \left (c (d+e x)^n\right )^{-4/n} \left (a+b \log \left (c (d+e x)^n\right )\right )^n \left (-\frac {a+b \log \left (c (d+e x)^n\right )}{b n}\right )^{-n} \Gamma \left (n+1,-\frac {4 \left (a+b \log \left (c (d+e x)^n\right )\right )}{b n}\right )}{e^4} \]
[In]
[Out]
Rule 2212
Rule 2337
Rule 2347
Rule 2436
Rule 2437
Rule 2448
Rubi steps \begin{align*} \text {integral}& = \int \left (\frac {(e f-d g)^3 \left (a+b \log \left (c (d+e x)^n\right )\right )^n}{e^3}+\frac {3 g (e f-d g)^2 (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^n}{e^3}+\frac {3 g^2 (e f-d g) (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^n}{e^3}+\frac {g^3 (d+e x)^3 \left (a+b \log \left (c (d+e x)^n\right )\right )^n}{e^3}\right ) \, dx \\ & = \frac {g^3 \int (d+e x)^3 \left (a+b \log \left (c (d+e x)^n\right )\right )^n \, dx}{e^3}+\frac {\left (3 g^2 (e f-d g)\right ) \int (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^n \, dx}{e^3}+\frac {\left (3 g (e f-d g)^2\right ) \int (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^n \, dx}{e^3}+\frac {(e f-d g)^3 \int \left (a+b \log \left (c (d+e x)^n\right )\right )^n \, dx}{e^3} \\ & = \frac {g^3 \text {Subst}\left (\int x^3 \left (a+b \log \left (c x^n\right )\right )^n \, dx,x,d+e x\right )}{e^4}+\frac {\left (3 g^2 (e f-d g)\right ) \text {Subst}\left (\int x^2 \left (a+b \log \left (c x^n\right )\right )^n \, dx,x,d+e x\right )}{e^4}+\frac {\left (3 g (e f-d g)^2\right ) \text {Subst}\left (\int x \left (a+b \log \left (c x^n\right )\right )^n \, dx,x,d+e x\right )}{e^4}+\frac {(e f-d g)^3 \text {Subst}\left (\int \left (a+b \log \left (c x^n\right )\right )^n \, dx,x,d+e x\right )}{e^4} \\ & = \frac {\left (g^3 (d+e x)^4 \left (c (d+e x)^n\right )^{-4/n}\right ) \text {Subst}\left (\int e^{\frac {4 x}{n}} (a+b x)^n \, dx,x,\log \left (c (d+e x)^n\right )\right )}{e^4 n}+\frac {\left (3 g^2 (e f-d g) (d+e x)^3 \left (c (d+e x)^n\right )^{-3/n}\right ) \text {Subst}\left (\int e^{\frac {3 x}{n}} (a+b x)^n \, dx,x,\log \left (c (d+e x)^n\right )\right )}{e^4 n}+\frac {\left (3 g (e f-d g)^2 (d+e x)^2 \left (c (d+e x)^n\right )^{-2/n}\right ) \text {Subst}\left (\int e^{\frac {2 x}{n}} (a+b x)^n \, dx,x,\log \left (c (d+e x)^n\right )\right )}{e^4 n}+\frac {\left ((e f-d g)^3 (d+e x) \left (c (d+e x)^n\right )^{-1/n}\right ) \text {Subst}\left (\int e^{\frac {x}{n}} (a+b x)^n \, dx,x,\log \left (c (d+e x)^n\right )\right )}{e^4 n} \\ & = \frac {4^{-1-n} e^{-\frac {4 a}{b n}} g^3 (d+e x)^4 \left (c (d+e x)^n\right )^{-4/n} \Gamma \left (1+n,-\frac {4 \left (a+b \log \left (c (d+e x)^n\right )\right )}{b n}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )^n \left (-\frac {a+b \log \left (c (d+e x)^n\right )}{b n}\right )^{-n}}{e^4}+\frac {3^{-n} e^{-\frac {3 a}{b n}} g^2 (e f-d g) (d+e x)^3 \left (c (d+e x)^n\right )^{-3/n} \Gamma \left (1+n,-\frac {3 \left (a+b \log \left (c (d+e x)^n\right )\right )}{b n}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )^n \left (-\frac {a+b \log \left (c (d+e x)^n\right )}{b n}\right )^{-n}}{e^4}+\frac {3\ 2^{-1-n} e^{-\frac {2 a}{b n}} g (e f-d g)^2 (d+e x)^2 \left (c (d+e x)^n\right )^{-2/n} \Gamma \left (1+n,-\frac {2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{b n}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )^n \left (-\frac {a+b \log \left (c (d+e x)^n\right )}{b n}\right )^{-n}}{e^4}+\frac {e^{-\frac {a}{b n}} (e f-d g)^3 (d+e x) \left (c (d+e x)^n\right )^{-1/n} \Gamma \left (1+n,-\frac {a+b \log \left (c (d+e x)^n\right )}{b n}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )^n \left (-\frac {a+b \log \left (c (d+e x)^n\right )}{b n}\right )^{-n}}{e^4} \\ \end{align*}
Time = 0.99 (sec) , antiderivative size = 343, normalized size of antiderivative = 0.72 \[ \int (f+g x)^3 \left (a+b \log \left (c (d+e x)^n\right )\right )^n \, dx=\frac {3^{-n} 4^{-1-n} e^{-\frac {4 a}{b n}} (d+e x) \left (c (d+e x)^n\right )^{-4/n} \left (3^n g^3 (d+e x)^3 \Gamma \left (1+n,-\frac {4 \left (a+b \log \left (c (d+e x)^n\right )\right )}{b n}\right )+2^{1+n} e^{\frac {a}{b n}} (e f-d g) \left (c (d+e x)^n\right )^{\frac {1}{n}} \left (2^{1+n} g^2 (d+e x)^2 \Gamma \left (1+n,-\frac {3 \left (a+b \log \left (c (d+e x)^n\right )\right )}{b n}\right )+3^n e^{\frac {a}{b n}} (e f-d g) \left (c (d+e x)^n\right )^{\frac {1}{n}} \left (3 g (d+e x) \Gamma \left (1+n,-\frac {2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{b n}\right )+2^{1+n} e^{\frac {a}{b n}} (e f-d g) \left (c (d+e x)^n\right )^{\frac {1}{n}} \Gamma \left (1+n,-\frac {a+b \log \left (c (d+e x)^n\right )}{b n}\right )\right )\right )\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )^n \left (-\frac {a+b \log \left (c (d+e x)^n\right )}{b n}\right )^{-n}}{e^4} \]
[In]
[Out]
\[\int \left (g x +f \right )^{3} {\left (a +b \ln \left (c \left (e x +d \right )^{n}\right )\right )}^{n}d x\]
[In]
[Out]
\[ \int (f+g x)^3 \left (a+b \log \left (c (d+e x)^n\right )\right )^n \, dx=\int { {\left (g x + f\right )}^{3} {\left (b \log \left ({\left (e x + d\right )}^{n} c\right ) + a\right )}^{n} \,d x } \]
[In]
[Out]
\[ \int (f+g x)^3 \left (a+b \log \left (c (d+e x)^n\right )\right )^n \, dx=\int \left (a + b \log {\left (c \left (d + e x\right )^{n} \right )}\right )^{n} \left (f + g x\right )^{3}\, dx \]
[In]
[Out]
Exception generated. \[ \int (f+g x)^3 \left (a+b \log \left (c (d+e x)^n\right )\right )^n \, dx=\text {Exception raised: RuntimeError} \]
[In]
[Out]
\[ \int (f+g x)^3 \left (a+b \log \left (c (d+e x)^n\right )\right )^n \, dx=\int { {\left (g x + f\right )}^{3} {\left (b \log \left ({\left (e x + d\right )}^{n} c\right ) + a\right )}^{n} \,d x } \]
[In]
[Out]
Timed out. \[ \int (f+g x)^3 \left (a+b \log \left (c (d+e x)^n\right )\right )^n \, dx=\int {\left (f+g\,x\right )}^3\,{\left (a+b\,\ln \left (c\,{\left (d+e\,x\right )}^n\right )\right )}^n \,d x \]
[In]
[Out]